Skip to content

chore(npm): clean dist before tsc; bump cli + core to 0.4.1#120

Merged
graydawnc merged 1 commit intomainfrom
chore/cli-core-clean-build-0.4.1
Apr 28, 2026
Merged

chore(npm): clean dist before tsc; bump cli + core to 0.4.1#120
graydawnc merged 1 commit intomainfrom
chore/cli-core-clean-build-0.4.1

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

The 0.4.0 npm publish shipped stale dist artifacts (commands/connector.js + connector-shared.js in cli, the entire connectors/ subtree in core). tsc only writes new files — it doesn't delete outputs whose source has been removed.

Functional impact: none (the CLI entry doesn't import the orphans, so they never execute), but the npm tarballs are ~37 kB heavier than they should be and the situation is misleading.

Fix

  • Prepend pnpm run clean (already defined as rm -rf dist in both packages) to the build script. Every fresh build now starts from an empty dist/.
  • Bump @spool-lab/cli and @spool-lab/core to 0.4.1 so the clean build can be published. App / landing / root stay at 0.4.0; the Electron release on GitHub is unaffected by this fix and there's no reason to cut another DMG just for npm hygiene.

Verified locally

  • pnpm --filter @spool-lab/core builddist/ no longer contains a connectors/ subtree
  • pnpm --filter @spool-lab/cli builddist/commands/ contains only list / search / show / status / sync (no connector*)
  • pnpm install --frozen-lockfile clean

Test plan

  • Clean build verified end-to-end on both packages
  • Lockfile unchanged (workspace package version bumps don't propagate there)
  • After merge: pull main, run pnpm publish -r --no-git-checks to ship the clean 0.4.1

The 0.4.0 npm publish shipped stale dist artifacts (commands/connector.js
and connector-shared.js from before #114 deleted them, plus core's
connectors/ subtree from before #115). tsc only writes new files; it
does not delete outputs whose source has been removed. The published
tarballs were functional (the CLI entry doesn't import the orphans)
but ~37 kB heavier than they should be.

Fix: prepend `pnpm run clean` (already defined as `rm -rf dist`) to
the build script so every fresh build starts from an empty dist/.
Verified locally — cli dist now contains only the 5 surviving
commands and core dist no longer carries a connectors/ tree.

Bump cli + core to 0.4.1 so the clean build can be published. App,
landing, and root version stay at 0.4.0 — the Electron release on
GitHub is unaffected by this fix and we don't need to cut another
DMG just for npm hygiene.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc merged commit eabd1c7 into main Apr 28, 2026
4 checks passed
@graydawnc graydawnc deleted the chore/cli-core-clean-build-0.4.1 branch April 28, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant